<!doctype html>
<html>
<head>
<style>
.errstyle { color:E1E1E1 !important;}
table { border-color:#FFFFFF;border-style:solid;border-width:2px; background: #E1E1E1; padding-right:25px; padding-left:25px;padding-top:25px; padding-bottom:20px;border-radius: 50px;font-family:Arial, Helvetica, sans-serif;}
table.padded-table {margin:0px;padding:0px;border-style:none; border-radius:0px; background:none; border-width:thin; border-style:solid;border-color:#E1E1E1;color:#E1E1E1; alignment-baseline:central;}
table.padded-table td {padding:5px;}

h1 { text-align:center;color:#E1E1E1;font-family:Arial, Helvetica, sans-serif;padding-bottom:15px;padding-top:30px; }
h2, h3, p {font-family:Arial, Helvetica, sans-serif;}
h2, h3 {color:#C30;padding-bottom:15px;padding-top:0px;}
p {color:#626262;}
a:link    {color:#626262;text-decoration:none;border-bottom: 2px dotted ;}
a:visited    {color:#626262;text-decoration:none;border-bottom: 2px dotted ;}
a:active    {color:#626262;text-decoration:none;border-bottom: 2px dotted ;}
a:hover {color: #303030; text-decoration:none;border-bottom: 2px dotted rgb(204,51,0);}
ul {color:#626262;font-family:Arial, Helvetica, sans-serif;}
li {padding-bottom:10px;}
body {background:#797979; }
b {color:#303030;}
table.menu {margin:0px;padding-left:35px;padding-right:35px;padding-bottom:5px;padding-top:5px;background: #E1E1E1; background: #E1E1E1; border-bottom-right-radius: 2.5em 2em;border-bottom-left-radius: 2.5em 2em;border-top-left-radius:0em 0em;border-top-right-radius:0em 0em;font-family:Arial, Helvetica, sans-serif;}
hr {margin-bottom:40px;margin-top:40px;margin-left:0px;margin-right:0px;padding:0px;width:150px;align:left;}
* {font-family:Arial, Helvetica, sans-serif;}
.zvyraznit {color:#C30;}
th {align:left;}
td {}

</style>

<script>
var timer = 0;
function set_interval()
{
  timer = setInterval("auto_logout()",300000);
}
function reset_interval()
{
	if (timer != 0) 
	{
		clearInterval(timer);
		timer = 0;
		timer = setInterval("auto_logout()",300000);
	}
}

function auto_logout()
{
	if ("<?= base_url() ?>" != document.URL)
		window.location="<?= base_url() ?>auth/logout";
}
</script>


	<meta charset="utf-8">
	<title><?= $title ?></title>
</head>
<body
onLoad="set_interval()"
onmousemove="reset_interval()"
onclick="reset_interval()" 
onkeypress="reset_interval()" 
onscroll="reset_interval()">





<table width="100%" class="menu">
 <tr>
 <td align="left">
Nemocničný informačný systém - diétna kuchyňa | Cesta: <a href="<?
if (isset($this->session->userdata['type']) && ($this->session->userdata['type'] == 3))
	echo base_url().'admin';
else if (isset($this->session->userdata['type']) && ($this->session->userdata['type'] == 0))
	echo base_url().'jedalnicek/vypis/'.$this->session->userdata['Rodne_cislo'];
else
	echo base_url().'pacienti';
?>">Domov</a>
</td>
 <td align="right">
<?
if ($this->session->userdata('logged_in')) {
	echo "    Prihlásený: ".$this->session->userdata('Meno')." ";
	echo $this->session->userdata('Priezvisko');
	echo " (".$this->session->userdata('Uzivatelske_meno').")  |  ";
?>
<a href="<?= base_url() ?>auth/logout">Odhlásiť</a></br>
<? } ?>
</td>
 </tr>
 </table>